package com.ruoyi.project.formula.formula.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 公式编辑对象 formula
 * 
 * @author shixiangwen
 * @date 2020-10-11
 */
public class Formula extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 拼音首字母 */
    @Excel(name = "拼音首字母")
    private String firstPy;

    /** 公式名 */
    @Excel(name = "公式名")
    private String name;

    /** 年级 */
    @Excel(name = "年级")
    private String grade;

    /** 章节ID */
    @Excel(name = "章节ID")
    private Long chapterId;

    /** 科目 */
    @Excel(name = "科目")
    private Long subjectId;

    /** 学段 */
    @Excel(name = "学段")
    private Long summaryId;

    /** 内容 */
    private String content;

    /** 排序 */
    @Excel(name = "排序")
    private Long vsort;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setFirstPy(String firstPy) 
    {
        this.firstPy = firstPy;
    }

    public String getFirstPy() 
    {
        return firstPy;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setGrade(String grade) 
    {
        this.grade = grade;
    }

    public String getGrade() 
    {
        return grade;
    }
    public void setChapterId(Long chapterId) 
    {
        this.chapterId = chapterId;
    }

    public Long getChapterId() 
    {
        return chapterId;
    }
    public void setSubjectId(Long subjectId) 
    {
        this.subjectId = subjectId;
    }

    public Long getSubjectId() 
    {
        return subjectId;
    }
    public void setSummaryId(Long summaryId) 
    {
        this.summaryId = summaryId;
    }

    public Long getSummaryId() 
    {
        return summaryId;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setVsort(Long vsort) 
    {
        this.vsort = vsort;
    }

    public Long getVsort() 
    {
        return vsort;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("firstPy", getFirstPy())
            .append("name", getName())
            .append("grade", getGrade())
            .append("chapterId", getChapterId())
            .append("subjectId", getSubjectId())
            .append("summaryId", getSummaryId())
            .append("content", getContent())
            .append("vsort", getVsort())
            .toString();
    }
}
